import { defineComponent } from 'vue'

import './index.scss';

export default defineComponent({
    name: 'VuaCover',
    setup(props, { emit, slots, attrs }) {
        console.log(slots.icon!()[0]!.props!.style);
        return () => {
            return (
                <div class="x" style={slots.icon!()[0]!.props!.style as string}>
                    {slots.icon ? slots.icon() : ''}
                    <div class="mask"> 点击修改头像</div>
                </div>
            )
        }
    }
})